home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 033a / prokit34.zip / DOSMEM.INT < prev    next >
Text File  |  1991-04-01  |  839b  |  37 lines

  1.  
  2. (*
  3.  * Copyright 1987, 1989 Samuel H. Smith;  All rights reserved
  4.  *
  5.  * This is a component of the ProDoor System.
  6.  * Do not distribute modified versions without my permission.
  7.  * Do not remove or alter this notice or any other copyright notice.
  8.  * If you use this in your own program you must distribute source code.
  9.  * Do not use any of this in a commercial product.
  10.  *
  11.  *)
  12.  
  13. (*
  14.  * dosmem - Dos Memory Management Unit (3-1-89)
  15.  *
  16.  * This unit allocates memory via DOS so you don't have to reserve
  17.  * heap space in advance.
  18.  *
  19.  *)
  20.  
  21. unit DosMem;
  22.  
  23. interface
  24.    uses DOS;
  25.  
  26.    type
  27.       pointer_rec = record
  28.          offset:  word;
  29.          segment: word;
  30.       end;
  31.  
  32.    function dos_maxavail: longint;
  33.    procedure dos_getmem(var ptrvar; size: word);
  34.    procedure dos_freemem(var ptrvar);
  35.  
  36. implementation
  37.